@extends('admin.layouts.base')

@section('title','首页')

@section('pageHeader','首页')

@section('pageDesc','首页')

@section('content')

<section class="content">
	    上次刷新时间：<span class="text-danger text-bold">{{date('Y-m-d H:i')}}</span> ，十分钟后自动刷新
	    <!-- 操作导航 -->
	@include('admin.index.opMenu')
      <!-- 来源数据 -->
      @if(isset($_GET['or_type']) && $_GET['or_type'] == 'skeyword')
      <div class="row">
        <div class="col-xs-12">
          <div class="box">
            <div class="box-header">
              <h3 class="box-title">{{isset($_GET['keyword'])?$_GET['keyword']:'所有'}}-搜索词分析--{{count($listsOR)}}</h3>
            </div>
            <!-- /.box-header -->
            <div class="box-body">
              <div id="example2_wrapper" class="dataTables_wrapper form-inline dt-bootstrap"><div class="row"><div class="col-sm-6"></div><div class="col-sm-6"></div></div><div class="row"><div class="col-sm-12"><table id="example2" class="table table-bordered table-hover dataTable" role="grid" aria-describedby="example2_info">
                    <thead>
                    <tr>
                      <td>搜索词</td>
                      <td>数量</td>
                    </tr>
                    </thead>
                    <tbody>
                    @foreach($listsOR as $key=>$obj)
                      <tr role="row" class="odd">      
                           <td><a target="_blank" href="?op=checOriginate&domain=all&or_type=keyword&keyword={{$obj->touch}}">{{$obj->touch}}</a></td>
                          <td>{{$obj->count}}</td>
                      </tr>
                    @endforeach

                </tbody>
                <tfoot>
                </tfoot>
              </table></div></div></div>
            </div>
            <!-- /.box-body -->
          </div>
          <!-- /.box -->
        </div>
        <!-- /.col -->
      </div>
      <!-- /.row -->

      @else
      <div class="row">
        <div class="col-xs-12">
          <div class="box">
            <div class="box-header">
              <h3 class="box-title">{{isset($_GET['keyword'])?$_GET['keyword']:'所有'}}-关键词分析--{{count($listsOR)}}</h3>
            </div>
            <!-- /.box-header -->
            <div class="box-body">
              <div id="example2_wrapper" class="dataTables_wrapper form-inline dt-bootstrap"><div class="row"><div class="col-sm-6"></div><div class="col-sm-6"></div></div><div class="row"><div class="col-sm-12"><table id="example2" class="table table-bordered table-hover dataTable" role="grid" aria-describedby="example2_info">
                    <thead>
                    <tr>
                      <td>关键词</td>
                      <td>搜索词</td>
                      <td>域名</td>
                      <td>数量</td>
                    </tr>
                    </thead>
                    <tbody>
                    @foreach($listsOR as $key=>$obj)
                      <tr role="row" class="odd">      
                          <td><a target="_blank" href="?op=checOriginate&domain=all&or_type=skeyword&keyword={{$obj->keyword}}">{{$obj->keyword}}</a></td>
                          <td><a target="_blank" href="?op=checOriginate&domain=all&or_type=skeyword&keyword={{$obj->keyword}}">{{$obj->touch}}</a></td>
                          <td><a target="_blank" href="?op=checOriginate&domain=all&or_type=skeyword&keyword={{$obj->keyword}}">{{$obj->domain}}</a></td>
                          <!-- <td>{{$obj->count}}</td> -->
                      </tr>
                    @endforeach

                </tbody>
                <tfoot>
                </tfoot>
              </table></div></div></div>
            </div>
            <!-- /.box-body -->
          </div>
          <!-- /.box -->
        </div>
        <!-- /.col -->
      </div>
      <!-- /.row -->

      @endif
          <!-- 域名列表-操作 -->
  @include('admin.index.dataTableDomain')

</section>
@stop

@section('js')
{{header("Refresh: 600")}}